package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 考试选择记录信息
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_choose")
public class ExamChoose {

    /**
     * 选择记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联学生表
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 关联试卷
     */
    @TableField(value = "exam_paper_id")
    private Integer examPaperId;

    /**
     * 关联题目表
     */
    @TableField(value = "subject_id")
    private Integer subjectId;

    /**
     * 所填值
     */
    @TableField(value = "result")
    private String result;

    /**
     * SQL有错误的情况
     */
    @TableField(value = "error")
    private String error;


}
